using System;
using BruteMerge.ExecutableLauncher.Interfaces;

namespace BruteMerge.ExecutableLauncher.Attributes
{
    [AttributeUsage(AttributeTargets.Assembly, AllowMultiple = false)]
    public class ApplicationFlagsAttribute : Attribute, IApplicationFlags
    {
        private readonly Flags _flags;

        [Flags]
        public enum Flags
        {
            None = 0x0000,
            EnableDebugPrintInLoader = 0x0001
        }

        public ApplicationFlagsAttribute(Flags flags)
        {
            _flags = flags;
        }

      
        public bool EnableDebugPrintInLoader
        {
            get { return _flags.HasFlag(Flags.EnableDebugPrintInLoader); }
        }
    }
}